package com.usefullc.crawler.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.usefullc.system.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 爬虫活动实体
 * @author: 星空
 * @date: 2022-07-27
 */
@ApiModel("爬虫活动")
@TableName("crawler_active")
@Data
public class Active extends BaseEntity {

//useful_auto_generate_section_start

    @ApiModelProperty(notes = "解析屏蔽表达式")
    @TableField(value = "`analyseBanExpress`")
    private String analyseBanExpress;

    @ApiModelProperty(notes = "解析表达式")
    @TableField(value = "`analyseExpress`")
    private String analyseExpress;

    @ApiModelProperty(notes = "解析提取URL表达式")
    @TableField(value = "`analyseDataExpress`")
    private String analyseDataExpress;

    @ApiModelProperty(notes = "请求方法")
    @TableField(value = "`method`")
    private String method;

    @ApiModelProperty(notes = "名称")
    @TableField(value = "`name`")
    private String name;

    @ApiModelProperty(notes = "序号")
    @TableField(value = "`orderNo`")
    private Integer orderNo;

    @ApiModelProperty(notes = "请求类型(0 simulator,1 http_api）")
    @TableField(value = "`requestType`")
    private Integer requestType;

    @ApiModelProperty(notes = "状态（0 未启用；1 已启用 ）")
    @TableField(value = "`status`")
    private Integer status;

    @ApiModelProperty(notes = "解析切换代理表达式")
    @TableField(value = "`switchProxyExpress`")
    private String switchProxyExpress;

    @ApiModelProperty(notes = "模板ID")
    @TableField(value = "`templateId`")
    private Long templateId;

    @ApiModelProperty(notes = "请求url")
    @TableField(value = "`url`")
    private String url;

    @ApiModelProperty(notes = "等待css选择表达式")
    @TableField(value = "`waitCssSelectorExpress`")
    private String waitCssSelectorExpress;

    @ApiModelProperty(notes = "selenium驱动类型(chrome,firefox,edge)")
    @TableField(value = "`webDriverType`")
    private String webDriverType;

    @ApiModelProperty(notes = "Cookie")
    @TableField(value = "`cookie`")
    private String cookie;


    @ApiModelProperty(notes = "提取数据的url")
    @TableField(value = "`extractDataUrl`")
    private String extractDataUrl;


    @ApiModelProperty(notes = "UI事件脚本")
    @TableField(value = "`uiEventScript`")
    private String uiEventScript;

    @ApiModelProperty(notes = "分片活动（0否，1是）")
    @TableField(value = "`sliceActive`")
    private Integer sliceActive;

    @ApiModelProperty(notes = "Html提取表达式类型（0 静态；1 动态）")
    @TableField(value = "`analyseExpressType`")
    private Integer analyseExpressType;


    @ApiModelProperty(notes = "变量")
    @TableField(value = "`variables`")
    private String variables;


//useful_auto_generate_section_end


    @ApiModelProperty(notes = "脏数据css选择表达式")
    @TableField(value = "`dirtyCssSelectorExpress`")
    private String dirtyCssSelectorExpress;


    @ApiModelProperty(notes = "运行超时时间")
    @TableField(value = "`runTimeout`")
    private Integer runTimeout;

    @ApiModelProperty(notes = "请求body")
    @TableField(value = "`requestBody`")
    private String requestBody;

    @ApiModelProperty(notes = "请求头部")
    @TableField(value = "`requestHeaders`")
    private String requestHeaders;
}
